<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<?php echo base_url() ?>css/reset.css" type="text/css" rel="stylesheet" media="screen" />
        <link href="<?php echo base_url() ?>css/style.css" type="text/css" rel="stylesheet" media="screen" />
        <title>fashion woman</title>
    </head>
    <body>
        
<?php     

echo form_open_multipart(current_url()); ?>
<?php echo $custom_error; ?>

                                    <p><label for="ma_sp">Ma_sp<span class="required">*</span></label>                                
                                    <input id="ma_sp" type="text" name="ma_sp" value="<?php echo set_value('ma_sp'); ?>"  />
                                    <?php echo form_error('ma_sp','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="maloaisp">Maloaisp<span class="required">*</span></label>                                
                                    <select name="maloaisp">
                                        <?php 
                                        foreach ($chungloai as $loaisp){
                                                echo "<option value='$loaisp->ma_chung_loai'>$loaisp->ten_chung_loai</option>";
                                            }
                                        ?>
                                    </select> 
                                    </p>
                                    

                                    <p><label for="ten_sp">Ten_sp<span class="required">*</span></label>                                
                                    <input id="ten_sp" type="text" name="ten_sp" value="<?php echo set_value('ten_sp'); ?>"  />
                                    <?php echo form_error('ten_sp','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="gia">Gia<span class="required">*</span></label>                                
                                    <input id="gia" type="text" name="gia" value="<?php echo set_value('gia'); ?>"  />
                                    <?php echo form_error('gia','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="gioithieu_sp">Gioithieu_sp<span class="required">*</span></label>                                
                                    <input id="gioithieu_sp" type="text" name="gioithieu_sp" value="<?php echo set_value('gioithieu_sp'); ?>"  />
                                    <?php echo form_error('gioithieu_sp','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="hinh_sp">Hinh_sp<span class="required">*</span></label>                                
                                            <?php echo form_upload('hinh_sp') ?>
                                            <?php echo form_error('hinh_sp', '<div>', '</div>'); ?>
                                    </p>

                                    <p><label for="soluong_sp">Soluong_sp<span class="required">*</span></label>                                
                                    <input id="soluong_sp" type="text" name="soluong_sp" value="<?php echo set_value('soluong_sp'); ?>"  />
                                    <?php echo form_error('soluong_sp','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="sp_xuhuong">Sp_xuhuong<span class="required">*</span></label>                                
                                    <input id="sp_xuhuong" type="text" name="sp_xuhuong" value="<?php echo set_value('sp_xuhuong'); ?>"  />
                                    <?php echo form_error('sp_xuhuong','<div>','</div>'); ?>
                                    </p>
                                    
<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>

    </body>
</html>